package com.aica.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author by
 * @date 2021/6/7 23:23
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Role implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer roleRealId;

    private String name;

    /**
     * 获得一个角色（暂时写死）
     * @return Role
     */
    public static Role getOne(){
        return new Role(1,1,"普通用户");
    }

}
